home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / DIRECTLY.TEC < prev    next >
Text File  |  1992-03-09  |  2KB  |  47 lines

  1. ID:WS Writing Directly to the Screen
  2. Quarterdeck Technical Note #109
  3. by Dan Sallitt
  4. last revision:  13 February 1992
  5.  
  6. Q:  How can I tell if my program writes directly to the screen?  Or how much 
  7. memory it needs?
  8.  
  9. To tell if an application is writing directly to the video hardware inside 
  10. DESQview, make the following changes in the application's Change a Program 
  11. menu:
  12.  
  13. 1) Set "Writes Text Directly to Screen" to N;
  14.  
  15. 2) Set "Virtualize Text/Graphics" to N;
  16.  
  17. 3) On the Advanced Options screen, blank out the following four fields in the 
  18. "Window Position" section: Starting Height, Starting Width, Starting Row, and 
  19. Starting Column.  Put blanks in these fields, not zeros.
  20.  
  21. When these changes have been made, open the program.  DESQview will place a 
  22. small window border on the screen; if the program comes up and stays within 
  23. the small window border, it does not write directly to the screen.  If it 
  24. blows away the window border and takes the full screen, it writes directly to 
  25. the hardware.
  26.  
  27. Without Quarterdeck's LOADHI program, there is no reliable way to determine 
  28. how much memory an application needs to run other than by trial and error.  
  29. You can make a reasonable guess by adding together the size of the .COM or 
  30. .EXE file that starts the program and the size of its biggest overlay, but a 
  31. program's data storage needs are difficult to predict.  The time-honored 
  32. method for determining the correct memory size for a window is to start by 
  33. giving the window an excessive amount of memory, then reducing that figure a 
  34. bit at a time until the program starts malfunctioning.
  35.  
  36. With LOADHI's /GS (get size) parameter, discussed in the QEMM and QRAM 
  37. manuals, you can get an accurate estimate of how much memory a program takes. 
  38. After you finish running the program with LOADHI, two numbers are returned: 
  39. the first is how much memory the program took to load and initialize, and the 
  40. second is the amount of memory the program permanently retained.
  41.  
  42.   ************************************************************************
  43.   *This technical note may be copied and distributed freely as long as it*
  44.   *is distributed in its entirety and it is not distributed for profit.  *
  45.   *         Copyright (C) 1990-2 by Quarterdeck Office Systems           *
  46.   ************************ E N D   O F   F I L E *************************
  47.